package com.neusoft.kc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 路由
 */
@Controller
public class IndexController {
    /**
     * 跳转到后台管理主页
     * @return
     */
    @RequestMapping(value = "/admin",method = RequestMethod.GET)
    public String admin(){
        return "main";
    }
    
    /**
     * 跳转到前台主页
     * @return
     */
    @RequestMapping(value = "/portal",method = RequestMethod.GET)
    public String portal(){
        return "redirect:portal/index.html";
    }
}
